package com.halachawiki.client;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.halachawiki.shared.PermissionException;
import com.halachawiki.shared.PublicAuthor;

@RemoteServiceRelativePath("author")
public interface AuthorService extends RemoteService {
	enum Status {
		OK,
		ERROR
	}
	
	Status newAuthor(PublicAuthor author) throws PermissionException;
	
	List<PublicAuthor> getAuthors() throws PermissionException;
}
